//
//  mainView.h
//  garbageclient
//
//  Created by Wang Wu on 11-8-10.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "popsortView.h"
#import "delegatedef.h"
#import "detailsView.h"
#import "mainViewTableCall.h"

@interface mainView : UIView<UITableViewDelegate,UITableViewDataSource,
popsortViewDelegate,detailsViewDelegate,mainviewTCDelegate> {
    UINavigationBar                 *navBar;
    popsortView                     *popsortview;
    UITableView                     *tableview;
    NSMutableData                   *webdatabuf;
    NSArray                         *results;
    NSURLConnection                 *connection;
    detailsView                     *detailsview;
}

@property(nonatomic, assign) NSObject<ViewDelegate> * delegate;

-(void)ConnectionBySort:(int) sorttp;
-(void)setFitFrame:(int)fitTp;

@end
